﻿// Raphaël Capocasale

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Te1Capocasale
    {
    class Polygones : Forme2D
        {

        /*---------------------------------------------*\
        |*                 Attributs                   *|
        \*---------------------------------------------*/
        private UInt32 m_cote;
        private static Random r = new Random();

        /*---------------------------------------------*\
        |*                Constructeur                 *|
        \*---------------------------------------------*/
        public Polygones()
            {
            UInt32 cote = (UInt32)Polygones.r.Next(3, 9);
            m_cote = (UInt32)r.Next(3,9);
            }

        /// <summary>
        /// Cette méthode affiches des informations concernant les polygones
        /// </summary>
        public override void afficher()
            {
            base.afficher();
            System.Console.WriteLine("de type POLYGONALE, possédant "+m_cote+" cotés");
            }
        }
    }
